package com.example.expandablelistview.service;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.example.expandablelistview.R;

public class MusicServiceTest extends Activity{
	private static final String TAG = "MusicServiceTest";
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.musicservicetest);
	}
	
	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.service_start:
			Log.d(TAG, "onClick() start ");
			startService(new Intent(this, MusicService.class));
			break;
		case R.id.service_stop:
			Log.d(TAG, "onClick() stop");
			stopService(new Intent(this, MusicService.class));
			break;
		}
	}

}
